import request from '@/utils/request'

//1. 获取用户名
export  function getUsername () {
    return request({
      url:'/user/getUsername',
      method:'get'
    })
}
//2. 获取验证码
export function getCode(phone) {
  return request({
    url:`/user/getCode?phone=${phone}`,
    method:'get'
  })
}
